<!DOCTYPE html>
<html>
	<head lang="en">
		<meta charset="UTF-8">
		<title>问候语</title>
		<script type="text/javascript">
			function clock_12h(){
				var today=new Date();
				var yyyy=today.getFullYear();
				var MM=today.getMonth();
				var dd=today.getDate();
				var hh=today.getHours();
				var selfDay="上午好";
				if(hh>12&&hh<=18){
					selfDay="下午好";
				}
				if(hh>18){
					selfDay="晚上好";
				}
				var mm=today.getMinutes();
				var ss=today.getSeconds();
				var day=today.getDay();
	
				document.getElementById("a").innerHTML="今天日期："+yyyy+"年"+(MM+1)+"月"+dd+"日"+"<br/>现在时间："+hh+":"+mm+":"+ss+"<br/>"+selfDay+"！欢迎来贵美！";
			}
			var myTime=setInterval("clock_12h()",1000);
		</script>
	</head>
	<body id="a">
		&nbsp;
	</body>
</html>
